package cn.geminis.data.jpa.graphql.entity;

import cn.geminis.data.jpa.DynamicRepository;
import org.springframework.data.jpa.repository.EntityGraph;

import java.util.List;

public interface LevelThreeRepository extends DynamicRepository<LevelThree, String> {

    @EntityGraph(value = "LevelThree.id", type = EntityGraph.EntityGraphType.FETCH)
    List<LevelThree> findAllByName(String name);

}
